.PHONY: all sim wave sby clean

all: sim

SRCV = i2c_bit_controller.v \
	i2c_bit_controller_tb.v

sim: a.out out.vcd
a.out: $(SRCV)
	iverilog $^ 

out.vcd: a.out
	vvp $^

wave: out.vcd
	gtkwave $^ -a i2c_bit.gtkw

sby: i2c_bit_ctrl.sby
	sby -f $^


clean:
	rm *.vcd a.out

